package com.sakura.util.generics;/**
 * Created by apple on 2019/8/8.
 */

/**
 * @author jixd
 * @Description
 * @Date 2019/8/8 3:26 PM
 * @Version 1.0
 **/
public final class GenericsTest {
    private static <T> void method(T arg1, T arg2) {
        System.out.println(arg1.getClass().getSimpleName());
        System.out.println(arg2.getClass().getSimpleName());
    }

    private static <T, U extends Integer> void method2(T arg1, U arg2) {
        System.out.println(arg1.getClass().getSimpleName());
        System.out.println(arg2.getClass().getSimpleName());
    }

//    public static void main(String[] args) {
//        method2(1, "1");
//    }
}
